<script setup lang="ts">
import { dateZhCN, zhCN } from 'naive-ui'
const theme = useThemeStore()

subscribeThemeStore()
</script>

<template>
  <n-config-provider
    :theme="theme.naiveTheme"
    :theme-overrides="theme.naiveThemeOverrides"
    :locale="zhCN"
    :date-locale="dateZhCN"
    class="h-full"
  >
    <n-global-style />
    <naive-provider>
      <Suspense>
        <router-view> </router-view>
      </Suspense>
    </naive-provider>
  </n-config-provider>
</template>
